package com.molichuxing.gateway.bff.stock.entity.response;

import java.time.LocalDateTime;

import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.StockCarCarStatusEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @author liyg
 * 库存车辆dto
 * 2019-09-10
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class StockCarDetailVo extends ResponseRootDto {
  
	@ApiModelProperty(value = "库存id")
    private Integer id;

	@ApiModelProperty(value = "车辆id")
    private Integer carId;

	@ApiModelProperty(value = "车架号")
	private String vin;
	
	@ApiModelProperty(value = "车牌号")
    private String licencePlate;
	
	@ApiModelProperty(value = "车型名称")
    private String vehicleName;
   
	@ApiModelProperty(value = "车型id")
    private Integer vehicleId;

	@ApiModelProperty(value = "发车库id")
    private Integer outStockId;
	
	@ApiModelProperty(value = "发车库名称（门店）")
    private String outStockName;

	@ApiModelProperty(value = "发车库类型（1：中转库，2：门店）")
    private Integer outStockType;
	
	@ApiModelProperty(value = "发车时间（还车时间）")
    private LocalDateTime outOperationTime;

	@ApiModelProperty(value = "收车库id")
    private Integer inStockId;
	
	@ApiModelProperty(value = "收车库名称（中转库）")
    private String inStockName;
	
	@ApiModelProperty(value = "收车库类型（1：中转库，2：门店）")
    private Integer inStockType;
	
	@ApiModelProperty(value = "收车回库时间")
    private LocalDateTime operationTime;

	@ApiModelProperty(value = "检验单文件url")
    private String pdiUrl;
	
	@ApiModelProperty(value = "采购订单号")
    private Long orderCode;
	
	@ApiModelProperty(value = "仓库id（还车时使用）")
    private Integer stockId;
	
	@ApiModelProperty(value = "运营状态（0：待出租，1：已出租，2：不可租）")
	private Integer carStatus;
	
	@ApiModelProperty(value = "运营状态Str")
	private String carStatusStr;
	
	

    /**
     * stock_stock_car
     */
    private static final long serialVersionUID = 1L;
    
    public void setCarStatus(Integer carStatus) {
    	this.carStatus=carStatus;
    	this.carStatusStr= carStatus==null ? null : StockCarCarStatusEnum.getName(carStatus);
    }

    
}